package cn.wolfcode.query;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;


@Getter
public class TravelCondition {
    //游记的出行时间
    public static final Map<Integer, TravelCondition> DAY_MAP = new HashMap<>();
    //游记的消费
    public static final Map<Integer, TravelCondition> PE = new HashMap<>();

    private int min;
    private int max;

    public TravelCondition(int min, int max){
        this.min = min;
        this.max = max;
    }

    static {
        DAY_MAP.put(1, new TravelCondition(0, 3));
        DAY_MAP.put(2, new TravelCondition(4, 7));
        DAY_MAP.put(3, new TravelCondition(8, 14));
        DAY_MAP.put(5, new TravelCondition(15, Integer.MAX_VALUE));

        PE.put(1, new TravelCondition(0, 999));
        PE.put(2, new TravelCondition(1000, 6000));
        PE.put(3, new TravelCondition(6001, 20000));
        PE.put(5, new TravelCondition(20001, Integer.MAX_VALUE));
    }
}
